export default function(point, callback) {
	let promise;
	if (typeof callback !== "function") {
		promise = new Promise((resolve, reject) => {
			callback = function(resolvedata, rejectdata) {
				if (resolvedata) {
					resolve(resolvedata);
				} else {
					reject(rejectdata);
				}
			};
		});
	}
	// point = {
	// 	lat: "39.932309844770714",
	// 	lng: "116.32205562269615",
	// };
	let gc = new BMap.Geocoder();
	point = new BMap.Point(point.lng, point.lat);
	console.log(point, "point");
	gc.getLocation(point, function(rs) {
		callback(rs)
	});
	return promise;
}